package com.gali.mall.model.dao;

import com.gali.mall.model.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
   //重名查询
    User selectbyUsername(String username);
    //用户登录
    User selectByUser(String username,String password);
    //查询全部用户
    List<User> selectAll();
}